"""
pip install pdfplumber -i https://pypi.tuna.tsinghua.edu.cn/simple --root-user-action=ignore
"""
import pdfplumber

def extract_text_from_pdf(pdf_path):
    content = ''
    with pdfplumber.open(pdf_path) as pdf:
        for page in pdf.pages:
            content += page.extract_text()
    return content

# 使用函数SFSAD
path = 'c:/Tmp/credit/2025032916005323784845.pdf'
text = extract_text_from_pdf(path)
print(text)